package com.study.lifeCycle;

import org.springframework.beans.factory.InitializingBean;

public class Car  implements InitializingBean{

    public Car() {
        System.out.println(this.getClass().getName() + "'s  " + "this no args Constructor is  invoked ");
    }


    public void init(){

        System.out.println("========================" + this.getClass().getName() + "'s  " +"this no args init is  invoked ");
    }

    public void destroy(){
        System.out.println("this no args destory is invoked ");
    }
    public void afterPropertiesSet() throws Exception {
        System.out.println("========================" + this.getClass().getName() + "'s  " +"afterPropertiesSet() was invoked");
    }


}
